//
//  HeartRateDataModels.swift
//  TimeBoat
//
//  Created by bo wang on 2022/8/28.
//  Copyright © 2022 Time Boat. All rights reserved.
//

import UIKit
import YYModel

@objc class HeartRateDataUnit: ChartsDataUnit {
    @objc var heartRate: Double = 0
    @objc var averageHeartRate: Double = 0
}

@objc class HeartRateYearlyDataUnit: ChartsYearDataUnit {
    @objc var averageHeartRate: Double = 0
}

@objc class HeartRateNormalDataModel: ChartsDataModel {
    @objc var list: [HeartRateDataUnit] = []
    @objc static func modelContainerPropertyGenericClass() -> [String: Any]? {[
        "list": HeartRateDataUnit.self
    ]}
}

@objc class HeartRateYearlyDataModel: ChartsDataModel {
    @objc var list: [HeartRateYearlyDataUnit] = []
    @objc static func modelContainerPropertyGenericClass() -> [String: Any]? {[
        "list": HeartRateYearlyDataUnit.self
    ]}
}
